package com.jumi.microservice.dto.request;

import com.jumi.microservice.enums.CommonEnum;
import com.jm.member.common.api.volidator.Validator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Set;

@ApiModel(value="等级配置更新对象")
public class JmUserLevelConfigUpdateRequest {

    @ApiModelProperty(value = "分销等级id")
    @NotNull(message = "配置id不能为空!",groups = {Validator.UpdateValidator.class})
    private Integer id;

    @ApiModelProperty(value = "分销等级名称")
    @NotNull(message = "分销等级名称不能为空!")
    private String levelName;

    @ApiModelProperty(value = "团队规模要求")
    @NotNull(message = "团队规模要求不能为空!")
    private Integer childrenNum;

    @ApiModelProperty(value = "团队规模等级要求")
    @NotNull
    private Integer[] childrenLevel;

    @ApiModelProperty(value = "新增团队要求")
    @NotNull(message = "新增团队要求不能为空!")
    private Integer addNum;

    @ApiModelProperty(value = "新增团队等级要求")
    @NotNull
    private Integer[] addLevel;

    @ApiModelProperty(value = "业绩要求")
    @NotNull(message = "业绩要求不能为空")
    private BigDecimal sales;

    @ApiModelProperty(value = "是否需要角色认证")
    @NotNull(message = "是否需要角色认证不能为空")
    private CommonEnum isIdentity;

/*    @ApiModelProperty(value = "降级考核人数")
    @NotNull(message = "降级考核人数不能为空")
    private Integer leveldownChildrenNum;

    @ApiModelProperty(value = "降级考核等级要求")
    @NotNull
    private Integer[] leveldownChildrenLevel;

    @ApiModelProperty(value = "考核降级业绩")
    @NotNull(message = "考核降级业绩不能为空")
    private BigDecimal leveldownSales;*/

    public Integer getAddNum() {
        return addNum;
    }

    public void setAddNum(Integer addNum) {
        this.addNum = addNum;
    }

    public Integer[] getAddLevel() {
        return addLevel;
    }

    public void setAddLevel(Integer[] addLevel) {
        this.addLevel = addLevel;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public Integer getChildrenNum() {
        return childrenNum;
    }

    public void setChildrenNum(Integer childrenNum) {
        this.childrenNum = childrenNum;
    }

    public BigDecimal getSales() {
        return sales;
    }

    public void setSales(BigDecimal sales) {
        this.sales = sales;
    }

    public CommonEnum getIsIdentity() {
        return isIdentity;
    }

    public void setIsIdentity(CommonEnum isIdentity) {
        this.isIdentity = isIdentity;
    }

    public Integer[] getChildrenLevel() {
        return childrenLevel;
    }

    public void setChildrenLevel(Integer[] childrenLevel) {
        this.childrenLevel = childrenLevel;
    }

}
